function mapBottom (bottoms){
const mapBottomObj={}
// 需求是把bottoms=['btn.user.update','btn.user.add']
// 转换为 mapBottomObj={user.add:true,user.update:true}

bottoms.forEach(bottomStr=> {
   let newStr=bottomStr.replace('btn.','')
  mapBottomObj[newStr]=true
});
    return mapBottomObj
}

export default mapBottom